package com.hzdp.service;

import java.util.List;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import com.hzdp.BaseTestCase;
import com.hzdp.entity.Record;

public class RecordServiceTestCase extends BaseTestCase {

	@Autowired
	private RecordService recordService;

	@Test
	public void testSave() {
		Record record = new Record();
		record.setCopd(11);
		record.setCopdYear(10);
		record.setPatientId(1);
		recordService.save(record);
	}

	@Test
	public void testFindAll() {
		List<Record> records = recordService.findAll();
		System.out.println(records);
	}
}
